<template>
  <div class="content">
    <!-- 优秀员工展示 -->
    <div class="ex-show">
      <p class="ex-title"><span>金牌月嫂 / 优秀育儿嫂 / 高级保姆</span></p>
      <p class="ex-subtitle">极致服务-尊享家庭私人定制</p>
      <div class="ex-img">
        <div v-for="(item, index) in exdata" :key="index">
          <div class="ex-intro">
            <img :src="item.eximg" alt="" width="100%" height="100%" />
          </div>
          <p class="ex-img-title">{{ item.excont1 }}</p>
          <p class="ex-img-subtitle">{{ item.excont2 }}</p>
          <h3>{{ item.excont3 }}</h3>
        </div>
      </div>
      <div class="ex-btn">更多优秀保姆推荐</div>
    </div>
    <!-- 学专业知识 -->
    <div class="learn">
      <h3 class="le-title">学专业知识</h3>
      <div class="le-container">
        <div v-for="(item, index) in ledata" :key="index" class="le-list">
          <div class="le-img">
            <div class="le-img-buttom">
              <img :src="item.leimg1" alt="" width="100%" height="100%" />
            </div>
            <div class="le-bgc"></div>
            <div class="le-img-top">
              <div class="le-img-top-div">
                <img :src="item.leimg2" alt="" width="100%" height="100%" />
                <p>{{ item.lecont1 }}</p>
              </div>
            </div>
          </div>
          <ul class="le-cont">
            <li v-for="(items, ids) in item.child[0].cldcont" :key="ids">
              {{ items }}
            </li>
          </ul>
        </div>
      </div>
    </div>
    <!-- 保姆招聘信息 -->
    <div class="info">
      <div class="info-title">
        <div class="info-title-left">保姆招聘信息</div>
        <div class="info-title-right">保姆招聘信息</div>
      </div>

      <div class="info-cont">
        <div class="info-cont-left">
          <ul class="what">
            <li>【订单类型】：住家保姆</li>
            <li>钟点工</li>
            <li>【订单类型】：住家照顾老人（月底要人）</li>
            <li>朱木欣</li>
            <li>朱木欣</li>
            <li>做家务</li>
            <li>【订单类型】：住家照顾老人</li>
            <li>【订单类型】：住家照顾老人</li>
            <li>【订单类型】：住家保姆</li>
          </ul>
        </div>
        <div class="info-cont-mid">
          <img src="http://res0.chenxin99.com/images/n_03.jpg" alt="" />
        </div>
        <div class="info-cont-right">
          <ul class="mini">
            <li>上海家政哪家正规？口碑比较好？</li>
            <li>上海口碑好的家政公司？有名都有哪些？</li>
            <li>上海家政公司排行榜？十大排名？</li>
            <li>上海育婴嫂哪里的好？最新价格是多少？</li>
            <li>上海育儿嫂哪个机构好？工资标准一般多少？</li>
            <li>应聘保姆工作，上海哪家保姆介绍所好？</li>
            <li>上海找保姆，上海好的保姆中介？</li>
            <li>上海月嫂哪家好？求上海月嫂公司排行榜</li>
            <li>上海哪个月嫂公司正规？上海月嫂价格行情？</li>
          </ul>
        </div>
      </div>
    </div>
      <!-- 活动，合伙人，荣誉 -->
    <div class="container">
      <div class="container-title">
        <span class="lable" @mouseenter="act1">活动</span>
        <span class="lable" @mouseenter="partner1">合伙人</span>
        <span class="lable" @mouseenter="honner1">荣耀</span>
      </div>
      <ul class="actlist" v-show="act">
        <li v-for="(item, index) in actdata" :key="index" class="actlist-img">
          <img :src="item.actimg" alt="" width="100%" height="100%" />
          <div class="act-div">
            <!-- <p>{{ item.actcont }}</p> -->
          </div>
        </li>
      </ul>
      <ul class="partnerlist" v-show="partner">
        <li
          v-for="(item, index) in partnerdata"
          :key="index"
          class="partnerlist-img"
        >
          <img :src="item.partnerimg" alt="" width="100%" height="100%" />
          <div class="partner-div">
          </div>
        </li>
      </ul>
      <ul class="honorlist" v-show="honor">
        <li
          v-for="(item, index) in honordata"
          :key="index"
          class="honorlist-img"
        >
          <img :src="item.honorimg" alt="" width="100%" height="100%" />
          <div class="honor-div">
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      exdata: [
        {
          id: "1",
          eximg:
            "http://img.chenxin99.com/o_1eotrnp3r1e2q1rlaspf1khr1pr5r.jpg-wenzi?imageMogr2/auto-orient/thumbnail/480x500",
          excont1: "保姆_倪阿姨",
          excont2: "52岁 / 辽宁人 / 新手 ",
          excont3: "专业保姆-长宁区",
        },
        {
          id: "2",
          eximg:
            "http://img.chenxin99.com/o_1eo6tk2kl8oi1omo1fusloi26r.jpg-wenzi?imageMogr2/auto-orient/thumbnail/480x500",
          excont1: "月嫂_许阿姨",
          excont2: "39岁 / 江苏人 / 3年经验",
          excont3: "高级月嫂-闵行区",
        },
        {
          id: "3",
          eximg:
            "http://img.chenxin99.com/o_1em416tq34oc1e4r1re5eqs192or.jpg-wenzi?imageMogr2/auto-orient/thumbnail/480x500",
          excont1: "月嫂_谢阿姨",
          excont2: "51岁 / 江苏人 / 8年经验",
          excont3: "金牌月嫂-静安区",
        },
        {
          id: "4",
          eximg:
            "http://img.chenxin99.com/o_1ekqh2mcbo2u1avu1joa1uonoo1r.jpg-wenzi?imageMogr2/auto-orient/thumbnail/480x500",
          excont1: "钟点工_张阿姨",
          excont2: "44岁 / 安徽人 / 3年经验",
          excont3: "高级钟点工-虹口区",
        },
        {
          id: "5",
          eximg:
            "http://img.chenxin99.com/o_1ekloniv6t9j1sjdfdtpgovq8r.jpg-wenzi?imageMogr2/auto-orient/thumbnail/480x500",
          excont1: "保姆_陈阿姨",
          excont2: "51岁 / 河南人 / 3年经验",
          excont3: "高级保姆-普陀区",
        },
      ],
      ledata: [
        {
          id: "1",
          lecont1: "孕期知识",
          leimg1: "http://res0.chenxin99.com/images/index/studyPic1.jpg",
          leimg2: "http://res0.chenxin99.com/images/icon/studyOne1.png",
          child: [
            {
              idx: "1",
              cldcont: [
                "2021年金牌月嫂工资一个月多少钱",
                "金牌月嫂的标准是什么，上海金牌月嫂哪里找比较靠谱",
                "上海月嫂公司排名榜前十位，十强品牌机构",
                "月嫂的岗位认知-月嫂是干什么的",
                "上海月嫂培训班多少钱，哪里有正规的培训机构",
              ],
            },
          ],
        },
        {
          id: "2",
          lecont1: "家政保姆",
          leimg1: "http://res0.chenxin99.com/images/index/studyPic2.jpg",
          leimg2: "http://res0.chenxin99.com/images/icon/studyOne2.png",
          child: [
            {
              idx: 2,
              cldcont: [
                "好的月嫂公司都必须提供这些服务，你选对了吗",
                "上海家政公司排名|上海家政公司哪家好?",
                "上海家政服务较好的公司是哪家_",
                "上海月嫂价格2018月嫂价格新找保姆中介费出炉_价格透明",
                "住家保姆，住家育婴师，照顾宝宝，婴儿护理，月嫂",
              ],
            },
          ],
        },
        {
          id: "3",
          lecont1: "坐月子知识",
          leimg1: "http://res0.chenxin99.com/images/index/studyPic3.jpg",
          leimg2: "http://res0.chenxin99.com/images/icon/studyOne3.png",
          child: [
            {
              idx: "3",
              cldcont: [
                "正规月嫂分享的产褥期的保健知识",
                "坐月子保姆推荐饮食3宜",
                "剖腹产和顺产妈妈产后恢复的区别",
                "坐月子5要点，预防产后肥胖",
                "夏季坐月子能用空调吗？",
              ],
            },
          ],
        },
        {
          id: "4",
          lecont1: "育儿知识",
          leimg1: "http://res0.chenxin99.com/images/index/studyPic4.jpg",
          leimg2: "http://res0.chenxin99.com/images/icon/studyOne4.png",
          child: [
            {
              idx: "4",
              cldcont: [
                "上海育儿嫂告诉你，如何让宝虹口稳的睡觉？",
                "宝宝突然不爱吃奶，资深月嫂说这些原因",
                "新生儿第一天护理应该注意什么？",
                "月嫂培训材料：脐部护理",
                "育婴课堂之宝宝睡眠惊跳",
              ],
            },
          ],
        },
      ],
       actdata: [
        {
          id: "1",
          actcont: "哈哈",
          actimg: "http://www.vagehome.com/vageimages/shouyehhr1.jpg",
        },
        {
          id: "2",
          actcont: "哈哈",
          actimg: "http://www.vagehome.com/vageimages/shouyehd22.jpg",
        },
        {
          id: "3",
          actcont: "哈哈",
          actimg: "http://www.vagehome.com/vageimages/2020101002.jpg",
        },
        {
          id: "4",
          actcont: "哈哈",
          actimg: "http://www.vagehome.com/vageimages/2020101003.jpg",
        },
        {
          id: "5",
          actcont: "哈哈",
          actimg: "http://www.vagehome.com/vageimages/shouyehd5.jpg",
        },
        {
          id: "6",
          actcont: "哈哈",
          actimg: "http://www.vagehome.com/vageimages/2020101001.jpg",
        },
      ],
      partnerdata: [
        {
          id: "1",
          partnercont: "哈哈",
          partnerimg: "http://www.vagehome.com/vageimages/shouyehhr1.jpg",
        },
        {
          id: "2",
          partnercont: "哈哈",
          partnerimg: "http://www.vagehome.com/vageimages/shouyehhr2.jpg",
        },
        {
          id: "3",
          partnercont: "哈哈",
          partnerimg: "http://www.vagehome.com/vageimages/shouyehhr3.jpg",
        },
        {
          id: "4",
          partnercont: "哈哈",
          partnerimg: "http://www.vagehome.com/vageimages/shouyehhr4.jpg",
        },
        {
          id: "5",
          partnercont: "哈哈",
          partnerimg: "http://www.vagehome.com/vageimages/shouyehd2.jpg",
        },
        {
          id: "6",
          partnercont: "哈哈",
          partnerimg: "http://www.vagehome.com/vageimages/shouyehhr6.jpg",
        },
      ],
      honordata: [
        {
          id: "1",
          honorcont: "哈哈",
          honorimg: "http://www.vagehome.com/vageimages/shouyerongyu1.jpg",
        },
        {
          id: "2",
          honorcont: "哈哈",
          honorimg: "http://www.vagehome.com/vageimages/shouyerongyu4.jpg",
        },
        {
          id: "3",
          honorcont: "哈哈",
          honorimg: "http://www.vagehome.com/vageimages/shouyerongyu5.jpg",
        },
        {
          id: "4",
          honorcont: "哈哈",
          honorimg: "http://www.vagehome.com/vageimages/shouyerongyu7.jpg",
        },
        {
          id: "5",
          honorcont: "哈哈",
          honorimg: "http://www.vagehome.com/vageimages/shouyerongyu8.jpg",
        },
        {
          id: "6",
          honorcont: "哈哈",
          honorimg: "http://www.vagehome.com/vageimages/shouyerongyu9.jpg",
        },
      ],
      act: true,
      partner: false,
      honor: false,
    };
  },
  methods:{
     act1() {
      this.act = true;
      this.partner = false;
      this.honor = false;
    },
    partner1() {
      this.act = false;
      this.partner = true;
      this.honor = false;
    },
    honner1() {
      this.act = false;
      this.partner = false;
      this.honor = true;
    },
  }
};
</script>
<style scoped>
* {
  margin: 0;
  padding: 0;
}
.le-img{
  cursor: pointer;
}
.le-cont{
  padding: 0 5px;
}
.le-cont li:hover{
  cursor: pointer;
  color: #ff6780;
}
.mini li:hover{
   cursor: pointer;
  color: #ff6780;
}
.what,.mini{
  padding: 0 10px;
}
.ex-show {
  width: 1380px;
  margin: 50px auto 0;
  background-color: #ff6780;
  border-top: 1px solid #ff6780;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 50px;
}
.ex-title {
  width: 100%;
  text-align: center;
  margin-top: 50px;
}
.ex-title > span {
  display: inline-block;
  font-size: 20px;
  color: white;
  padding-bottom: 10px;
  border-bottom: 1px solid white;
}
.ex-subtitle {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  color: white;
}
.ex-img {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
.ex-img > div {
  width: 230px;
  height: 399px;
  background-color: #fff;
}
.ex-intro {
  width: 210px;
  height: 258px;
  margin: 10px auto;
}
.ex-img > div > p {
  text-align: center;
}
.ex-img-title {
  margin-top: 10px;
}
.ex-img-subtitle {
  margin-top: 10px;
}
.ex-img > div > h3 {
  margin-top: 30px;
  text-align: center;
  color: #f5212d;
}
.ex-btn {
  text-align: center;
  line-height: 40px;
  width: 382px;
  height: 40px;
  background-color: #fff;
  color: #f5212d;
  border-radius: 20px;
  margin: 40px auto 0;
}
.ex-btn:hover {
  cursor: not-allowed;
  color: rgb(105, 105, 105);
}

/* 学专业知识 */
.learn {
  width: 1380px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 50px auto 0;
}
.le-title {
  text-align: center;
  position: relative;
}
.le-title::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 1px;
  background-color: black;
  left: 780px;
  top: 13px;
}
.le-title::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 1px;
  background-color: black;
  left: 400px;
  top: 13px;
}
.le-container {
  display: flex;
  justify-content: space-between;
}

.le-list {
  margin-top: 50px;
  width: 344px;
  position: relative;
}
.le-list:hover {
  top: -3px;
  box-shadow: 0px 4px 2px -1px rgba(126, 126, 126, 0.4);
}
.le-img-top {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 344px;
  height: 168px;
  background-color: #f7f7f7;
  z-index: 2;
}
.le-img-top-div {
  width: 80px;
  margin: 20px auto 0;
}
.le-bgc {
  position: absolute;
  width: 344px;
  height: 168px;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
}
.le-img-buttom {
  opacity: 0;
}
.le-list:hover .le-bgc {
  display: block;
}
.le-list:hover .le-img-buttom {
  opacity: 1;
}
.le-img-top:hover {
  background-color: rgba(0, 0, 0, 0);
  color: white;
}

.le-cont {
  border: 1px solid #e2e2e2;
  padding-bottom: 50px;
}
.le-cont > li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 20px;
  margin-left: 3px;
}

/* 保姆招聘信息 */
.info {
  width: 1380px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 50px auto 0;
}

.info-title{
  display: flex;
  justify-content: space-between;
}
.info-title-left{
  font-size: 24px;
  margin-left: 30px;
  position: relative;
}
.info-title-left::before{
  content: '';
  position: absolute;
  width: 5px;
  height: 30px;
  background-color: #ff6780;
  left: -20px;
  top: 0;
}
.info-title-right{
  font-size: 24px;
  margin-right: 290px;
  position: relative;
}
.info-title-right::before{
  content: '';
  position: absolute;
  width: 5px;
  height: 30px;
  background-color: #ff6780;
  left: -20px;
  top: 0;
}
.info-cont {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
.info-cont-left{
  border-top:1px solid #f7f7f7 ;
}
.info-cont-left > ul {
  border-top:1px solid #f7f7f7 ;
  list-style: none;
  background-color: #f7f7f7;
  width: 450px;
  padding-bottom: 5px;
}
.info-cont-left li {
  margin-top: 23px;
}
.info-cont-right{
  border-top:1px solid #f7f7f7 ;
}
.info-cont-right > ul {
  border-top:1px solid #f7f7f7 ;
  list-style: none;
  width: 450px;
   background-color: #f7f7f7;
   padding-bottom: 5px;
}
.info-cont-right li {
  margin-top: 23px;
}

.container {
  width: 80%;
  margin: 50px auto 0;
}
.container-title {
  text-align: center;
  box-sizing: border-box;
  /* padding-bottom: 20px; */
  
  margin: 0 auto;
  border-bottom: 2px solid black;
}
.lable {
  cursor: pointer;
  box-sizing: border-box;
  display: inline-block;
  margin-left: 30px;
  font-size: 30px;
  font-weight: 500;
  height: 60px;
  color: #ff7742;
  padding-bottom: 10px;
  
}
.lable:nth-of-type(1){
  margin-left: 0;
}
.lable:hover {
  border-bottom: 2px solid #ff7742;
}
/* act */
.actlist {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.actlist-img {
  width: 30%;
  object-fit: contain;
  height: 200px;
  margin-bottom: 30px;
  position: relative;
}
.act-div {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #e28e3e;
  transition: all 0.4s;
}
.actlist-img:hover .act-div {
  width: 100%;
  height: 200px;
  transition: all 0.4s;
}
.act-div > p {
  margin-top: 90px;
  text-align: center;
  opacity: 0;
}
.actlist-img:hover .act-div > p {
  opacity: 1;
}
/* partner */
.partnerlist {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.partnerlist-img {
  width: 30%;
  height: 200px;
  margin-bottom: 30px;
  position: relative;
}
.partner-div {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #e28e3e;
  transition: all 0.4s;
}
.partnerlist-img:hover .partner-div {
  width: 100%;
  height: 200px;
  transition: all 0.4s;
}
.partner-div > p {
  margin-top: 90px;
  text-align: center;
  opacity: 0;
}
.partnerlist-img:hover .partner-div > p {
  opacity: 1;
}
/* honor*/
.honorlist {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.honorlist-img {
  width: 30%;
  height: 200px;
  margin-bottom: 30px;
  position: relative;
}
.honor-div {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #e28e3e;
  transition: all 0.4s;
}
.honorlist-img:hover .honor-div {
  width: 100%;
  height: 200px;
  transition: all 0.4s;
}
.honor-div > p {
  margin-top: 90px;
  text-align: center;
  opacity: 0;
}
.honorlist-img:hover .honor-div > p {
  opacity: 1;
}
</style>